<template>
  <div>
    <button @click="one2">+1</button>
    <button @click="$emit('hundred')">+100</button>
    <button @click="$emit('30', 30)">+n</button>

  </div>
</template>

<script>
export default {
  /* 自定义事件 */
  emits: ['one', 'hundred', '30'],
  data() {
    return {

    }
  },
  methods: {
    one2() {
      //发射ggg事件
      this.$emit('one')

    }
  }
}
</script>

<style scoped>

</style>